package com.cty;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

//表示启动springboot的启动类
//@SpringBootConfiguration表示是一个配置类
//@EnableAutoConfiguration自动配置配置类
//@ComponentScan扫描包，默认:是该类所在的包，和其子包
@SpringBootApplication
public class Main {
    public static void main(String[] args) {
        SpringApplication.run(Main.class,args);
    }
    //这里也可以写组件
    @Bean
    public Object object() {
        return new Object();
    }
}